home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d15 / grkami2.arc / GMKAMI.SMM next >
INI File  |  1991-05-09  |  5KB  |  486 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [prn]
  7.     Epson 9 pin
  8. [lang]
  9.     1
  10. [desc]
  11.     
  12.     
  13.     
  14.     
  15.     
  16.     673651644
  17.     28
  18.     661024420
  19. [fopts]
  20.     0
  21.     1
  22.     0
  23.     0
  24. [lnopts]
  25.     2
  26.     Body Text
  27. [docopts]
  28.     5
  29.     0
  30. [tag]
  31.     Body Text
  32.     2
  33.     [fnt]
  34.         Tms Rmn
  35.         160
  36.         0
  37.         49152
  38.     [algn]
  39.         225
  40.         1
  41.         0
  42.         0
  43.         0
  44.     [spc]
  45.         17
  46.         273
  47.         1
  48.         0
  49.         0
  50.         1
  51.         100
  52.     [brk]
  53.         4
  54.     [line]
  55.         8
  56.         0
  57.         1
  58.         0
  59.         1
  60.         2
  61.         2
  62.         20
  63.         20
  64.         1
  65.     [spec]
  66.         0
  67.         0
  68.         
  69.         0
  70.         1
  71.         0
  72.         0
  73.         1
  74.         0
  75.         0
  76.     [nfmt]
  77.         280
  78.         1
  79.         3
  80.         .
  81.         ,
  82.         $
  83. [tag]
  84.     footer
  85.     3
  86.     [fnt]
  87.         Tms Rmn
  88.         200
  89.         0
  90.         49152
  91.     [algn]
  92.         225
  93.         1
  94.         0
  95.         0
  96.         0
  97.     [spc]
  98.         17
  99.         273
  100.         1
  101.         0
  102.         0
  103.         1
  104.         100
  105.     [brk]
  106.         4
  107.     [line]
  108.         8
  109.         0
  110.         1
  111.         0
  112.         1
  113.         2
  114.         2
  115.         20
  116.         20
  117.         1
  118.     [spec]
  119.         0
  120.         0
  121.         
  122.         0
  123.         1
  124.         0
  125.         0
  126.         1
  127.         0
  128.         0
  129.     [nfmt]
  130.         280
  131.         1
  132.         3
  133.         .
  134.         ,
  135.         $
  136. [lay]
  137.     Standard
  138.     513
  139.     [rght]
  140.         15840
  141.         12240
  142.         1
  143.         1080
  144.         360
  145.         1
  146.         1080
  147.         720
  148.         4
  149.         1
  150.         0
  151.         1
  152.         8
  153.         4
  154.         1
  155.         1080
  156.         11520
  157.         14
  158.         1
  159.         359
  160.         1
  161.         721
  162.         1
  163.         1084
  164.         1
  165.         1446
  166.         1
  167.         1792
  168.         1
  169.         2155
  170.         1
  171.         2517
  172.         1
  173.         2880
  174.         1
  175.         3242
  176.         1
  177.         3605
  178.         1
  179.         3967
  180.         1
  181.         4323
  182.         1
  183.         4683
  184.         1
  185.         5043
  186.     [hrght]
  187.     [lyfrm]
  188.         1
  189.         11200
  190.         0
  191.         0
  192.         12240
  193.         1080
  194.         1
  195.         1
  196.         3
  197.         1
  198.         5
  199.         0
  200.         0
  201.     [frmlay]
  202.         1080
  203.         12240
  204.         1
  205.         360
  206.         0
  207.         1
  208.         0
  209.         0
  210.         2
  211.         1
  212.         0
  213.         1
  214.         1
  215.         0
  216.         1
  217.         360
  218.         12240
  219.         3
  220.         1
  221.         365
  222.         2
  223.         6120
  224.         3
  225.         11162
  226.     [txt]
  227. <+B>
  228.  
  229. <+B>
  230.  
  231. <+B>    <:da<*!><* >>        Date Created:  <:da<*$><* >>
  232.  
  233. <+B>    By Charlie Pappas    Page - <:P11,1,>    Date Last revised:  <:da<*%><* >>
  234.  
  235. <+B>    
  236.  
  237. >
  238.     [frght]
  239.     [lyfrm]
  240.         1
  241.         13248
  242.         0
  243.         15480
  244.         12240
  245.         15840
  246.         1
  247.         1
  248.         3
  249.         1
  250.         5
  251.         0
  252.         0
  253.     [frmlay]
  254.         15840
  255.         12240
  256.         1
  257.         720
  258.         0
  259.         1
  260.         15480
  261.         720
  262.         2
  263.         1
  264.         0
  265.         1
  266.         1
  267.         0
  268.         1
  269.         720
  270.         11520
  271.         0
  272.     [txt]
  273. @footer@
  274. >
  275. [elay]
  276. [l1]
  277.     0
  278. [edoc]
  279. function grammar()
  280.  
  281.  
  282. <:f240,2Tms Rmn,0,0,0>'This macro places a menu item called "Grammatik" 
  283. as the last item on the tools menu.  Selecting the menu loads the 
  284. current Amipro file in Grammatik for grammar checking.  When you close 
  285. Grammatik, Pro will load the corrected file.
  286.  
  287.  
  288. <:f240,2Tms Rmn,0,0,0>'Note on Autoexec.smm.  You can have Amipro 
  289. automatically start this macro.  To do this, you must create a file 
  290. containing the following text omitting the quotes.  
  291.  
  292.  
  293. <:f240,2Tms Rmn,0,0,0>'Function auto()
  294.  
  295. <:f240,2Tms Rmn,0,0,0>'call gmkami<:f><:f240,2Tms Rmn,0,0,0>.smm!grammar()
  296.  
  297. <:f240,2Tms Rmn,0,0,0>'End Function
  298.  
  299.  
  300. <:f240,2Tms Rmn,0,0,0>'Save the file as Autoexec.SMM in the docs directory 
  301. (or amipro directory).
  302.  
  303.  
  304.  
  305. ignorekeyboard(1)
  306.  
  307. macro = "gmkami.smm"
  308.  
  309. mpath = getmacpath$()
  310.  
  311. DeleteMenuItem(1 "Too&ls" "Gra&mmatik")
  312.  
  313. AddMenuItem(1 "Too&ls" "Gra&mmatik" "{mpath}{macro}!checkit")
  314.  
  315. end function
  316.  
  317.  
  318. function checkit()
  319.  
  320. oncancel endit
  321.  
  322. onerror endit
  323.  
  324. declare quitap()
  325.  
  326. getdocname:
  327.  
  328. xname = GetDocDesc$(1)
  329.  
  330. name = GetOpenFileName$()
  331.  
  332. if name = "" then
  333.  
  334.     go = multidecide("You must save your document first." 1)
  335.  
  336.     if go <<>> 1 then
  337.  
  338.         exit function
  339.  
  340.     endif
  341.  
  342.     save
  343.  
  344.     goto getdocname
  345.  
  346. else
  347.  
  348.     if (true = filechanged(0 0))
  349.  
  350.         save()
  351.  
  352.     endif
  353.  
  354. endif
  355.  
  356. darkmode(on)
  357.  
  358. exec("GMKW.EXE" "-i {name}")
  359.  
  360. quitap()
  361.  
  362. ignorekeyboard(1)
  363.  
  364. fileopen(name amifile "")
  365.  
  366. endit:
  367.  
  368. ignorekeyboard(0)
  369.  
  370. darkmode(off)
  371.  
  372. end function
  373.  
  374.  
  375. function Quitap()
  376.  
  377. onerror endit
  378.  
  379. oncancel endit
  380.  
  381. FindWindow = DLLLocate("User", "FindWindow", "ICC")
  382.  
  383. hWnd = DLLCall(FindWindow, "grammatik", "grammatik")
  384.  
  385. while (hwnd)
  386.  
  387.     pause(010)
  388.  
  389.     hWnd = DLLCall(FindWindow, "grammatik", "grammatik")
  390.  
  391. wend
  392.  
  393. return 1
  394.  
  395. endit:
  396.  
  397. darkmode(off)
  398.  
  399. End FUNCTION
  400.  
  401.  
  402. >
  403. [macsum] 3
  404. grammar 0 0 3 0
  405. checkit 148 0 4 20
  406. Quitap 529 0 3 49
  407. [macse]
  408. 14 grammar
  409. 0 32 1
  410. 7 "gmkami.smm"
  411. 8 1
  412. 0 295
  413. 13
  414. 8 2
  415. 0 520 1 "Too&ls" "Gra&mmatik"
  416. 0 516 1 "Too&ls" "Gra&mmatik" "{2}{1}!checkit"
  417. 6 0
  418. 15
  419. 9
  420. 14 checkit
  421. 19 00000352
  422. 20 00000352
  423. 0 279 1
  424. 13
  425. 8 1
  426. 0 267
  427. 13
  428. 8 2
  429. 6 2
  430. 7 ""
  431. 18 0
  432. 11 00000231
  433. 0 21 "You must save your document first." 1
  434. 13
  435. 8 3
  436. 6 3
  437. 5 1
  438. 18 1
  439. 11 00000197
  440. 6 0
  441. 15
  442. 9
  443. 24 103
  444. 10 00000038
  445. 10 00000278
  446. 5 1
  447. 0 34 0 0
  448. 13
  449. 18 0
  450. 11 00000278
  451. 2 103 1
  452. 0 292 1
  453. 0 22 "GMKW.EXE" "-i {2}"
  454. 16 quitap
  455. 0 32 1
  456. 2 102 1 "{2}" 1 ""
  457. 0 32 0
  458. 0 292 0
  459. 6 0
  460. 15
  461. 9
  462. 14 Quitap
  463. 20 00000225
  464. 19 00000225
  465. 0 283 "User" "FindWindow" "ICC"
  466. 13
  467. 8 1
  468. 0 284 "{1}" "grammatik" "grammatik"
  469. 13
  470. 8 2
  471. 6 2
  472. 11 00000213
  473. 0 274 010
  474. 0 284 "{1}" "grammatik" "grammatik"
  475. 13
  476. 8 2
  477. 10 00000125
  478. 5 1
  479. 15
  480. 9
  481. 0 292 0
  482. 6 0
  483. 15
  484. 9
  485. 00003667
  486.